﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.VersionControl.Client;

namespace RenameTracker
{
    public static class ChangeTypeExtensions
    {
        public static bool IsNameChange(this ChangeType changeType)
        {
            return changeType.IsType(ChangeType.Rename);
        }

        public static bool IsType(this ChangeType changeType, ChangeType compareTo)
        {
            return (changeType & compareTo) != 0;
        }
    }
}
